package entity

import (
	"time"

	"shqsoft.cn/pasnj/base"
)

//IndiYJ 非保本理财工号维护
type IndiYJ struct {
	ID int `gorm:"AUTO_INCREMENT;primary_key;column:ID"`
	// DTID  time.Time `gorm:"column:DTID"` //导入日期
	PUNO      string     `gorm:"column:产品编号"`
	PUNM      string     `gorm:"column:所属产品"`
	IDNO      string     `gorm:"column:身份证号"`
	CUNM      string     `gorm:"column:客户名称"`
	CDNO      string     `gorm:"column:卡号"`
	BGDT      *time.Time `gorm:"column:起息日;type:date"`
	FNDT      *time.Time `gorm:"column:到期日;type:date"`
	ACBL      float64    `gorm:"column:余额"`
	SysUserID string     `gorm:"column:工号"`
}

//TableName 非保本理财工号维护
func (IndiYJ) TableName() string {
	return "V_INDI_FBBLC"

}

//IndiYJEF 返回结构体
func IndiYJEF() base.EntityFunc {
	return func() interface{} {
		entity := IndiYJ{}
		return &entity
	}
}

//IndiYJESF 返回结构体数组
func IndiYJESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []IndiYJ
		return &entities
	}
}

func init() {
	base.DaoPoolObj.Put("IndiYJ", base.NewDefaultDao(IndiYJEF(), IndiYJESF(), nil))

}
